<template>
	<view class="hometop">
		<view class="hometitle" :style="{top:area.top+'px',height:area.height+'px',lineHeight:area.height+'px'}">   
			 北京第一人民医院   
		</view>   
		<view class="homeimg">
			<image class="img" mode="aspectFill"
				src="https://diancan-1252107261.cos.accelerate.myqcloud.com/yiliao/nav-yiyu.png"></image>   
		</view> 
	</view>


</template>

<script>
	export default {
		name: "homeTop",
		data() {
			return {
				area: null,
			};
		},
		mounted() {
			// 在获取到本地的数据
			this.area = wx.getStorageSync("area");
		}
	}
</script>

<style lang="scss">
	.hometop {
		.hometitle {
			position: fixed;
			z-index: 9;
			color: white;
			left: 20px;
		}

		.homeimg {
			image {
				width: 100%;
			}
		}
	}
</style>
